From 877c2e0a58749f0b71213eb7aa56e19dde1acd4e Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 13 Jan 2018 12:19:28 +0000 Subject: [PATCH] selenium, update page spec to include more chars Bug: T184749 Change-Id: I3423011c467b0a6426cfa0dad522435618f24bd0 --- tests/selenium/specs/page.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index 06d3d60a1b..e59da78a55 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -9,6 +9,10 @@ describe( 'Page', function () { var content, name; + function getTestString() { + return Math.random().toString() + '-öäü-♠♣♥♦'; + } + before( function () { // disable VisualEditor welcome dialog UserLoginPage.open(); @@ -17,8 +21,8 @@ describe( 'Page', function () { beforeEach( function () { browser.deleteCookie(); - content = Math.random().toString(); - name = Math.random().toString(); + content = getTestString(); + name = getTestString(); } ); it( 'should be creatable', function () { @@ -34,19 +38,17 @@ describe( 'Page', function () { it( 'should be editable', function () { - var content2 = Math.random().toString(); - // create browser.call( function () { return EditPage.apiEdit( name, content ); } ); // edit - EditPage.edit( name, content2 ); + EditPage.edit( name, content ); // check assert.equal( EditPage.heading.getText(), name ); - assert.equal( EditPage.displayedContent.getText(), content2 ); + assert.equal( EditPage.displayedContent.getText(), content ); } ); -- 2.20.1